from django.contrib import admin
from django.urls import path, include

# 1.总路由中注册路由转换器
from django.urls import register_converter
from meiduo_test.utils import converters

register_converter(converters.UsernameConverter, 'username')
register_converter(converters.MobileConverter, 'mobile')

urlpatterns = [
    # 添加users的总路由
    path('', include('apps.users.urls')),
    # 添加验证码 verifications 总路由
    path('', include('apps.verifications.urls')),
    # 省市区areas:
    path('', include('apps.areas.urls')),

    # 首页广告
    path('', include('apps.contents.urls')),

    # 商品列表页
    path('', include('apps.goods.urls')),

    # 购物车
    path('', include('apps.carts.urls')),
]